From: Lukáš Tyrychtr Date: Tue, 5 Aug 2025 11:54:59 +0000 (+0200) Subject: quickSettings: Allow changing the accessible name for quick slider menu buttons X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~104^2^2~81 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=802c5521156fce2493ebd596ed8b3edac8670b77;p=gnome-shell.git quickSettings: Allow changing the accessible name for quick slider menu buttons Allow to specify a more descriptive accessible name for these buttons, this will be used in the next commit to make the names unique. Part-of: --- diff --git a/js/ui/quickSettings.js b/js/ui/quickSettings.js index 056c6d343..921537463 100644 --- a/js/ui/quickSettings.js +++ b/js/ui/quickSettings.js @@ -251,6 +251,10 @@ export const QuickSlider = GObject.registerClass({ 'menu-enabled', null, null, GObject.ParamFlags.READWRITE, false), + 'menu-button-accessible-name': GObject.ParamSpec.string( + 'menu-button-accessible-name', null, null, + GObject.ParamFlags.READWRITE, + _('Open menu')), }, Signals: { 'icon-clicked': {}, @@ -337,10 +341,12 @@ export const QuickSlider = GObject.registerClass({ can_focus: true, x_expand: false, y_expand: true, - accessible_name: _('Open menu'), }); box.add_child(this._menuButton); + this.bind_property('menu-button-accessible-name', + this._menuButton, 'accessible-name', + GObject.BindingFlags.SYNC_CREATE); this.bind_property('menu-enabled', this._menuButton, 'visible', GObject.BindingFlags.SYNC_CREATE);